package com.xusheng.cli.req;

import cn.hutool.core.lang.RegexPool;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author lyh
 * @since 2023-04-27 15:39
 */
@Data
@ToString
public class UpdateInfoReq {

    @NotNull(message = "手机号不能为空")
    @Pattern(regexp = RegexPool.MOBILE, message = "手机号格式不正确")
    private String phone;
    @NotNull(message = "邮箱不能为空")
    @Pattern(regexp = RegexPool.EMAIL, message = "邮箱地址格式不正确")
    private String email;

}
